package com.frejoys.common.dto.common.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class AuthGroupAuthorizeDto{

    @NotNull(message = "{600}")
    @Schema(type = "Long", name = "userId", description = "用户id", required = true, defaultValue = "1")
    private Long userId;

    @NotNull(message = "{600}")
    @Schema(type = "List<Integer>", name = "groupId", description = "权限组id", required = true, defaultValue = "[1]")
    private List<Integer> groupId;

}
